/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package assignemnt1;

/**
 *
 * @author Hansel-G
 */
import java.io.*;

public class GetUserInput {
    public static String getUserChoice (String subMenu) {
       System.out.print(subMenu);
       BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
       String name = null;
       try {
         name = br.readLine();
         System.out.println("Inside getUserChoice()");
         System.out.println("The user input : " + name);
       } catch (IOException e) {
         System.out.println("Error!");
         System.exit(1);
       }
      return name;
}
}

